﻿using System.ServiceProcess;
using System.Timers;

namespace LsHttp
{
    public partial class Service1 : ServiceBase
    {
        public Service1()
        {
            InitializeComponent();

            Timer timer = new  Timer();
            timer.Elapsed += HttpEvent.Send;
            timer.Interval = 3000*60;//每5秒执行一次  
            timer.Enabled = true;
        }

        protected override void OnStart(string[] args)
        {
        }

        protected override void OnStop()
        {
        }
    }
}
